<?php
/*
 * @FilePath: Banners.php
 * @Author: 谭贤伟
 * @Date: 2023-04-01 10:09:40
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2023-04-02 18:50:48
 * @Descripttion: 
 */
namespace app\api\validate;

use think\Validate;

class Banners extends Validate
{
    protected $rule = [
        'limit' => 'require|integer|>:0',
    ];
    
    protected $message = [
        'limit.require' => '缺少limit参数',
        'limit.integer' => 'limit参数必须为整数',
        'limit.>:0' => 'limit参数必须为正整数',
    ];
}